﻿using System;
using System.Globalization;
using System.Windows.Data;
namespace CoreModule.Converters
{
    /// <summary>
    /// 字体 大小转换。没有使用
    /// </summary>
    public class UserCardFontSize20Converter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            double viewportWidth = (double)value;
            double baseFontSize = viewportWidth * 0.05; // 10% of viewport width
            return baseFontSize;
        }
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
